import java.util.HashMap;
import java.util.List;


public class FunExpr extends Expr {

	public Fun f;
	public List args;
	
	public FunExpr(HashMap syms, Fun f, List args) {
		this.f = f;
		this.args = args;
		this.syms = syms;
	}
	
	@Override
	public Integer run() {
		try {
			Expr e = f.run(args);
			return e.run();
		} catch(Exception ex) {
			System.out.println("Error: " + ex);
			return 0;
		}
	}

}
